package com.service.business.merchant.controller.req;

import com.service.dao.enums.CoinsEnum;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class MerchantOrderCreateReq {

    @NotBlank(message = "merchant_order_exception_member_account_not_null")
    private String memberLoginAccount;

    @NotNull(message = "merchant_order_exception_order_coin_not_null")
    private CoinsEnum coins;

    @NotNull(message = "merchant_order_exception_pay_money_not_empty")
    @Min(value = 0, message = "merchant_order_exception_pay_money_le_zero")
    private BigDecimal payMoney;

    @NotNull(message = "merchant_order_exception_commodity_list_not_empty")
    private List<MerchantOrderDetailReq> commodityList;

}
